package com.aijk.ehm.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.model.OptContent;
import com.aijk.ehm.model.qo.OptContentQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface OptContentApi {
    Long save(OptContent bean) throws ErrorCodeException;

    void update(OptContent bean) throws ErrorCodeException;

    OptContent findOne(Long id) throws ErrorCodeException;

    List<OptContent> list(OptContentQo qo);

    void deleteById(Long id) throws ErrorCodeException;

    int count(OptContentQo qo);

    PageInfo<OptContent> page(OptContentQo qo);
}